//
//  DbExchangeTable.h
//  MarketDataColloctor
//
//  Created by jiro on 10/03/10.
//  Copyright 2010 jiro music. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "DbTableEntry_.h"
#import "../DbConstants.h"

@interface DbExchangeTableEntry_ : DbTableEntry_ {

	NSString*	code;

	NSDate*	exchangeDate;

	double	openPrice;
	
	double	closePrice;

	double	highPrice;

	double	lowPrice;

}

@property(assign) NSString*	code;
@property(assign) NSDate*	exchangeDate;
@property(assign) double	openPrice;
@property(assign) double	closePrice;
@property(assign) double	highPrice;
@property(assign) double	lowPrice;

+ (DbExchangeTableEntry_*) dbExchangeTableEntryWithValues: (NSArray*) values;

+ (double) volatilityOf: (NSArray*) exchangeEntries forPriceFieldType: (PriceField::Type) type; 

- (double) price: (PriceField::Type) type;

- (double) priceWidth;

@end
